<?php

$page->title = "NEXT STEPS Hub";
$page->date = '2014/07/10';
$page->setTheme('nrhc-lite');

$upcomingEvents = array(
    array(
        title => 'Connect',
        img => 'http://nrhc-pages.northrockhill.com/ipad-buttons/connect-class.jpg',
        wufoo => 'zlxtnnn0eozst1'
    ),
    array(
        title => 'High School Mission Trip',
        img => 'http://nrhc-pages.northrockhill.com/northrockstudents/2015-MissionTrip/chip.jpg',
        wufoo => 'z1miwmx01gbgp6y'
    ),
    array(
        title => 'Baby Dedication',
        img => 'http://nrhc-pages.northrockhill.com/baby-dedication/2015/chip.jpg',
        wufoo => 'zj50oov1k68t0s'
    ),
    array(
        title => 'CityServe Participant',
        img => 'http://nrhc-pages.northrockhill.com/northrockstudents/CityServe/chip-participant.jpg',
        wufoo => 'z1ifyip7044fi69'
    ),
    array(
        title => 'CityServe Volunteer',
        img => 'http://nrhc-pages.northrockhill.com/northrockstudents/CityServe/chip-volunteer.jpg',
        wufoo => 'zj85xcg1u966to'
    )
);

$permanentEvents = array(
    array(
        title => 'D Groups',
        img => 'http://nrhc-pages.northrockhill.com/ipad-buttons/d-group.jpg',
        href => wufoo('try-a-group')
    ),
    array(
        title => 'Subscribe to the NRHC eNews',
        img => 'http://nrhc-pages.northrockhill.com/ipad-buttons/enews.jpg',
        href => wufoo('nrhc-enews')
    ),
    array(
        title => 'Salvation',
        img => 'http://nrhc-pages.northrockhill.com/misc/salvation-chip.jpg',
        href => wufoo('gospel')
    ),
    array(
        title => 'Student email',
        img => 'http://nrhc-pages.northrockhill.com/ipad-buttons/Student-Email.jpg',
        href => 'http://visitor.r20.constantcontact.com/manage/optin?v=001FCkP-cZiSO5dCtXK1BpMXt1L8RZdlRrHL7uh42aE56t2BtYU_6hCdbLXiGqd6OfcULnJEijRuenLdVVjTk-N3-E7y9wgct94Vo3va4vgiLs%3D'
    ),
    array(
        title => 'Ladies email',
        img => 'http://nrhc-pages.northrockhill.com/ministry/ladies/email-sign-up.jpg',
        href => wufoo('zgbs33i1jlf41q')
    )
);

?>

<div class="row">
  <div class="eight columns centered">

    <h1><?= $page->title ?></h1>

    <p>To sign up for an event, simply click the button below and fill out the form. To return to this page, use the 
    app icon on the home screen.</p>

    <hr>

    <h2>Current Events</h2>

    <p class="center">

        <?php foreach( $upcomingEvents as $event ): ?>
            <a href="<?= wufoo( $event['wufoo'] ); ?>" target="wufoo">
                <img src="<?= $event['img'] ?>" alt="<?= $event['title'] ?>" width="135">
            </a>
        <?php endforeach; ?>

    </p>

    <hr>

    <h2>Ongoing Opportunities</h2>

    <p class="center">

        <?php foreach( $permanentEvents as $event ): ?>
            <a href="<?= $event['href'] ?>" target="_blank">
                <img src="<?= $event['img'] ?>" alt="<?= $event['title'] ?>" width="135">
            </a>
        <?php endforeach; ?>

    </p>

  </div>
</div>
